import './fcl_bmf_platform_interface.dart';

class FclBmfInterface {
  // 私有构造函数
  FclBmfInterface._privateConstructor();

  // 单例实例
  static final FclBmfInterface _instance =
      FclBmfInterface._privateConstructor();

  // 提供一个工厂构造函数来获取单例实例
  factory FclBmfInterface() {
    return _instance;
  }

  Future<String?> getPlatformVersion() {
    return FclBmfPlatformInterface.instance.getPlatformVersion();
  }

  Future<String?> getAppIdentifier() {
    return FclBmfPlatformInterface.instance.getAppIdentifier();
  }

  Future<String?> requestPermission () {
    return FclBmfPlatformInterface.instance.requestPermission();
  }

  Future<bool> setAK(String ak) {
    return FclBmfPlatformInterface.instance.setAK(ak);
  }

  Future<bool> setAgreePrivacy(bool agree) {
    return FclBmfPlatformInterface.instance.setAgreePrivacy(agree);
  }

  Future<String> startLocation() async {
    return FclBmfPlatformInterface.instance.startLocation();
  }

  Future<bool> stopLocation() async {
    return FclBmfPlatformInterface.instance.stopLocation();
  }

  Future<bool> flutterToOhosByMapPage() async {
    return FclBmfPlatformInterface.instance.flutterToOhosByMapPage();
  }

}
